<template>
	<view>
		<u-navbar :isBack="false" :border-bottom="false" :background="{ backgroundColor: '#0993EC' }" title-color="#fff" title="识"></u-navbar>
		
		<u-tabs :list="list" :current="current" @change="change"></u-tabs>
		<view class="fourth-part">
			<view class="content" v-for="i in 4" :key="i">
				<image class="left-img" src="../../static/img/list1.png" mode="widthFix"></image>
				<view class="right-content">
					<view class="title">
						标题
					</view>
					<view class="des">
						前端开发是创建WEB页面或APP等前端界面 呈现给用户的过程，通过解决方案，来实 现互联网产品的用户界面交互...
					</view>
					<view class="time">
						<text>writer</text>
						<text>2021-05-05</text>
					</view>
				</view>
			</view>
		</view>
		<!-- tab -->
		<tab :url="url" index="2"></tab>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: {
					homeURL: '/pages/home/home',
					kldURL: '/pages/kld/kld',
					myURL: '/pages/user/user'
				},
				list: [{
					name: 'html'
				}, {
					name: 'css'
				}, {
					name: 'js',
					// count: 5
				},{
					name: 'vue'
				},{
					name: 'flutter'
				},{
					name: 'node'
				},{
					name: 'java'
				},],
				current: 0
			};
		},
		methods: {
			change(index) {
				this.current = index;
			}
		}
	}
</script>

<style lang="scss" scoped>
	
	.kld {
		background-color: #f5f5f5;
		min-height: 100vh;
	}
	.fourth-part {
		width: 100%;
		padding-bottom: 120upx;
		.content {
			display: flex;
			justify-content: space-between;
			align-items: center;
			background-color: #fff;
			margin: 20upx 0;
			padding: 0 40upx;
			.left-img {
				width: 360upx;
				margin-right: 30upx;
			}
			.right-content {
				display: flex;
				flex-direction: column;
				justify-content: space-evenly;
				padding: 20upx 0;
				.title {
					font-weight: bold;
					font-size: 32upx;
				}
				.des {
					font-size: 24upx;
					margin: 8upx 0;
				}
				.time {
					display: flex;
					justify-content: space-between;
				}
			}
		}
	}
</style>
